package com.example.demo.mapper;

import com.example.demo.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    Integer addUser(@Param("username") String username,
                    @Param("password") String password);

    UserInfo login(@Param("username") String username, @Param("password") String password);

    UserInfo getPasswordByName(@Param("username") String username);
    UserInfo getUserinfoByArtId(@Param("id") Integer id);


}
